package com.bt.springboot.demo.testquestions;

/**
 * @author zkx
 * @Date 2024/3/25 10:29
 */
public class Test2 {

	static String str1 = "Hello";
	static String str2 = new String("Hello");
	static String str3 = "Hello";
	static String str4 = new String(str3);

	public static void main(String[] args) {
		System.out.println(str1==str2);
		System.out.println(str1==str3);
		System.out.println(str2=="Hello");
		System.out.println(str3==str4);
	}
}
